<template>
    <div>
        <h2>这是登录登录登录登录登录登录登录页面</h2>
        <p>
            <button @click="loginEvt">登录</button>
        </p>
    </div>
</template>

<script>
    export default {
        methods: {
            loginEvt() {
                sessionStorage.setItem('token',Date.now())
                
                this.$router.push('/home')
            }
        }
    }
</script>